//
//  GKZYUniversityMajoreScoreView.m
//  GKZYAid
//
//  Created by Tony Zhang on 16/3/14.
//  Copyright © 2016年 GKZYAid. All rights reserved.
//

#import "GKZYUniversityMajoreScoreView.h"
#import "MyDefine.h"

@implementation GKZYUniversityMajoreScoreView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
    }
    return self;
}


-(void)confirgureTheViewWithMajorName:(NSString *)name DataArray:(NSArray *)array{


    UILabel *nameLab = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, VIEWWIDTH/4, VIEWHEIGHT)];
    nameLab.text = name;
    nameLab.textColor = [UIColor orangeColor];
    nameLab.font = [UIFont systemFontOfSize:12];
    [self addSubview:nameLab];
    
    for (int i =0; i < array.count; i ++) {
        UILabel *label = [[UILabel alloc]init];
        label.frame = CGRectMake(VIEWWIDTH/2+(VIEWWIDTH/2-10)*i/3, 0, (VIEWWIDTH/2-10)/3, VIEWHEIGHT);
        label.font = [UIFont systemFontOfSize:12];
        label.textAlignment = NSTextAlignmentCenter;
        label.text = array[i];
        [self addSubview:label];
    }
}

@end
